<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{:lang('v_admin_system')}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="www.df81.com">
    <link rel="stylesheet" href="{:config('template.skin')}/fontawesome/css/all.min.css">
    <link rel="stylesheet" href="{:config('template.skin')}/css/adminlte.min.css">
    <link rel="stylesheet" href="{:config('template.skin')}/overlayScrollbars/css/OverlayScrollbars.min.css">
    <link rel="stylesheet" href="{:config('template.skin')}/css/googlefonts.css?family=Source+Sans+Pro:300,400,400i,700">
    <link rel="stylesheet" href="{:config('template.skin')}/css/global.css">
    <script type="text/javascript">
        // 定义公共变量
        var v_upload_img = '{:lang('v_upload_img')}';
        var g_illegal = '{:lang('g_illegal')}';
        var tips_title = '{:lang('v_do_tips')}';
        var modal_head =  '<div class="modal-header">';
            modal_head += '    <span class="modal-title"><i class="fas fa-info-circle mr-1"></i>'+tips_title+'</span>';
            modal_head += '    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>';
            modal_head += '</div>';
    </script>
</head>
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
<body class="hold-transition sidebar-mini layout-fixed text-sm">
<!-- wrapper 开始 -->
<div class="wrapper">
    <!-- 顶部导航 开始 -->
    <nav class="main-header navbar navbar-expand navbar-dark navbar-primary border-bottom-0">
        <!-- 顶部左侧 -->
        <ul class="navbar-nav">
            <li class="d-block d-lg-none"><a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a></li>
            <li class="nav-item d-none d-md-inline-block {eq name="home_current" value="active"}bg-light rounded{/eq}">
                <a href="{:url('/index/index',['lang'=>$lang])}" class="nav-link">
                    <i class="fas fa-home mr-1"></i><span class="d-invisible">{:lang('v_home')}</span>
                </a>
            </li>
            {if config('app.isdisplay.user') or config('app.isdisplay.feedback') or config('app.isdisplay.shop_order') or config('app.isdisplay.shop_tax') or config('app.isdisplay.shop_coupon') or config('app.isdisplay.comment')}
                <li class="nav-item d-none d-md-inline-block {eq name="data_current" value="active"}bg-light rounded{/eq}">
                    {if config('app.other.system_type') eq 'company'}
                        <a href="{:url('/feedback/index',['lang'=>$lang,'signid'=>3])}" class="nav-link">
                            <i class="fas fa-chart-bar mr-1"></i><span class="d-invisible">{:lang('v_data_manage')}</span>
                        </a>
                    {else /}
                        <a href="{:url('/shop_order/index',['lang'=>$lang,'tabledir'=>'product'])}" class="nav-link">
                            <i class="fas fa-chart-bar mr-1"></i><span class="d-invisible">{:lang('v_data_manage')}</span>
                        </a>
                    {/if}
                </li>
            {/if}
            <li class="nav-item d-none d-md-inline-block {eq name="global_current" value="active"}bg-light rounded{/eq}">
                <a href="{:url('/site/index',['lang'=>$lang])}" class="nav-link">
                    <i class="fas fa-globe-americas mr-1"></i><span class="d-invisible">{:lang('v_global')}</span>
                </a>
            </li>
            {if config('app.other.system_type') neq 'company'}
                <li class="nav-item d-none d-md-inline-block {eq name="system_current" value="active"}bg-light rounded{/eq}">
                    <a href="{:url('/shop_set/index',['lang'=>$lang])}" class="nav-link">
                        <i class="fas fa-cogs mr-1"></i><span class="d-invisible">{:lang('g_system')} {:lang('v_setting')}</span>
                    </a>
                </li>
            {else /}
                <?php
                    if(config('app.isdisplay.email') == 1){
                        $system_url = url('/email/index',['lang'=>$lang]);
                    }else{
                        $system_url = url('/sms/index',['lang'=>$lang]);
                    }
                    if(config('app.isdisplay.email') == 1 or config('app.isdisplay.sms') == 1){
                ?>
                        <li class="nav-item d-none d-md-inline-block {eq name="system_current" value="active"}bg-light rounded{/eq}">
                            <a href="{$system_url}" class="nav-link">
                                <i class="fas fa-cogs mr-1"></i><span class="d-invisible">{:lang('g_system')} {:lang('v_setting')}</span>
                            </a>
                        </li>
                <?php
                    }
                ?>
            {/if}
            <li class="nav-item d-none d-md-inline-block">
                <a href="/" target="_blank" class="nav-link"><i class="fas fa-desktop mr-1"></i><span class="d-invisible">{:lang('v_homepage')}</span></a>
            </li>
        </ul>
        <!-- 顶部右侧 -->
        <ul class="navbar-nav ml-auto">
            <li class="nav-item d-sm-inline-block d-md-none"><a href="/" class="nav-link" target="_blank"><i class="fas fa-desktop"></i></a></li>
            <!-- 清理缓存 -->
            <li class="nav-item">
                <a href="javascript:void(0);" class="nav-link cursor" onClick="javascript:do_ajax('','','{:url('/index/delCache',['lang'=>$lang])}','');">
                    <i class="fa fa-sync-alt mr-1"></i><span class="d-invisible">{:lang('v_clean_cache')}</span>
                </a>
            </li>
            <!-- 语言 -->
            {gt name="languageNum" value="1"}
            <li class="nav-item dropdown">
                <a class="nav-link" data-toggle="dropdown" href="#">
                    <img src="{$nowLang.ico}" width="16" height="11" class="mr-1"><span class="d-invisible">{$nowLang.admintitle}<i class="fas fa-angle-down ml-1"></i></span>
                </a>
                <div class="dropdown-menu dropdown-menu-right border-0 mt-2 py-1">
                    {volist name="headlang" id="headlang"}
                        {if $lang neq $headlang.mulu}
                            <a class="dropdown-item" href="{:url('/index/index',['lang'=>$headlang['mulu']])}"><img src="{$headlang['ico']}" width="16" height="11" class="mr-1">{$headlang['admintitle']}</a>
                        {/if}
                    {/volist}
                </div>
            </li>
            {/gt}
            <!-- 用户 -->
            <li class="nav-item dropdown">
                <a class="nav-link pt-1" data-toggle="dropdown" href="#">
                    <img class="border rounded-circle mr-1" width="25" height="25" src="{:input('session.avatar')}" onerror="this.src='/skin/admin/img/avatar.png'" />
                    <span class="d-invisible">{:session('nickname')}<i class="fas fa-angle-down ml-1"></i></span>
                </a>
                <div class="dropdown-menu dropdown-menu-right border-0 mt-2 py-1">
                    <a class="dropdown-item" href="{:url('/user/edit',['lang'=>$lang,'id'=>input('session.userid')])}"><i class="fas fa-user mr-1"></i>{:lang('v_me_edit')}</a>
                    <div class="dropdown-divider my-0"></div>
                    <a class="dropdown-item" href="javascript:void(0);" onClick="javascript:logout();"><i class="fas fa-power-off mr-1"></i>{:lang('v_logout')}</a>
                </div>
            </li>
        </ul>
    </nav>
    <!-- 顶部导航 结束 -->
    <!-- 左侧 开始 -->
    <aside class="main-sidebar elevation-4 sidebar-dark-success">
        <!-- Logo -->
        <div class="brand-link navbar-primary">
            <a href="{:url('/index/index',['lang'=>$lang])}" class="float-left text-white">
                <i class="fas fa-home mr-1 mt-1 brand-image"></i><span class="brand-text h6 mb-0 d-sm-inline-block">{:lang('v_admin_system')}</span>
            </a>
            <div class="float-right mr-3">
                <a class="d-block d-lg-none text-white" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
            </div>
            <div class="clearfix"></div>
        </div>